﻿using System.Collections.Generic;
using EmitLib.AST.Interfaces;

namespace EmitLib.AST.Nodes
{
	class AstComplexNode : IAstNode
	{
		public List<IAstNode> nodes = new List<IAstNode>();

		public void Compile(CompilationContext context)
		{
			foreach (IAstNode node in nodes)
			{
				if (node != null)
				{
					node.Compile(context);
				}
			}
		}
	}
}